import { post, get } from '@/utils/request'

const addConsult = params => post('/consult/add', params)
const updateConsult = params => post('/consult/update', params)
const deleteConsult = (params) => get(`/consult/delete/${params.id}` )
const getConsult = (params) => post(`/consult/search/${params.name}`)
// const listConsult = () => get('/consult/all/optional')
const listConsult = () => get('/consult/list')
const pageConsult = (params) => get(`/consult/all/${params.pageNum}/${params.pageSize}`)


export {
  addConsult,
  updateConsult,
  getConsult,
  listConsult,
  deleteConsult,
  pageConsult
}
